import numpy as np
import cv2 as cv
import matplotlib.pyplot as plt

img = np.zeros((512, 512, 3), np.uint8)

cv.line(img, (0, 0), (512, 512), (255, 0, 0),5)
cv.circle(img, (0, 0),50, 255, -1)
cv.rectangle(img, (100, 100), (200, 200), (0,255,0),5)
cv.putText(img,'hello',(100,100),cv.FONT_HERSHEY_COMPLEX,5,(255,255,255),3)
plt.imshow(img[:,:,::-1])
plt.show()